package com.CMS.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.CMS.server.domain.Menu;

public interface MenuServiceAsync {

	void getMenu(AsyncCallback<Menu> callback);
	
	void create(Menu m, AsyncCallback<Void> callback);
	
	void updateMenu(Menu m, AsyncCallback<Void> callback);
	
	void fetch(AsyncCallback<List<Menu>> callback);
	
	void delete(long id, AsyncCallback<Void> callback);
	
	void update(long id,boolean flagDelete,String description,AsyncCallback<Menu> callback);
	
	void create(String description, AsyncCallback<Void> callback);
	
	void getMenu(long idMenu, AsyncCallback<Menu> callback);	
}
